﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexHead" ContentPlaceHolderID="head" runat="server">
    <link rel="Alternate" type="application/rss+xml" title="RSS" href="Home/rss" />
    <title>DeepTalk Conference Explorer</title>
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%= Html.Encode(ViewData["Message"]) %></h2>
    <br />
    <table border="0">
        <tr>
            <th align="left">
                Date
            </th>
            <th align="left">
                Conference
            </th>
        </tr>
        <% foreach (ConferenceZoom.DTDBService.BasicTalkInfo c in (IEnumerable)ViewData.Model)
           { %>
        <tr>
            <td>
                <%=c.StartDate.ToShortDateString() %>
            </td>
            <td>
                <%=Html.ActionLink(c.Title, "Show", new { controller = "Conference", id=c.ID })%>
            </td>
        </tr>
        <% } %>
        <tr>
        </tr>
    </table>
    <br />
    <h3>
        Submit a new conference for rendering!</h3>
    <% using (Html.BeginForm())
       { %>
    <label for="url">
        URL of conference:</label>
    <%=Html.TextBox("url")%>
    <%=Html.ValidationMessage("url") %>
    <br />
    <input type="submit" value="Render Conference" />
    <% } %>
    <p>See the <%= Html.ActionLink("About", "About", "Home")%> page for more information on how to submit meetings for rendering.</p>
</asp:Content>
